function updateStatus(userid) {
    $.ajax({
        url: 'http://localhost:8080/admin/setUserStatus',
        type: 'GET',
        dataType: 'json',
        data: {'id': userid},
        success: function (res) {
            window.location.reload();
        }
    })
}